Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade System.Net.Http package version #6879

Merged
merged 5 commits into from
Sep 24, 2021

Conversation

AR-May
Copy link
Member

@AR-May AR-May commented Sep 22, 2021

Context

Upgrading version of System.Net.Http package to the latest one, that is 4.3.4.

Changes Made

We have indirect references to System.Net.Http with lesser versions (that is, v4.3.0 is a dependency of our nuget dependencies).
I added a direct reference to our .csproj files in order to overwrite the version we take.

Also, in couple of projects we have an assembly reference to the System.Net.Http, which I replaced by a package reference.

Testing

Unit tests & DDRITs.

@AR-May
Copy link
Member Author

AR-May commented Sep 22, 2021

Talked to @rainersigwald, we need to fix our sample .csproj files too. I will update this PR.


<ProjectReference Include="..\Build\Microsoft.Build.csproj" />
<ProjectReference Include="..\Framework\Microsoft.Build.Framework.csproj" />
<ProjectReference Include="..\MSBuild\MSBuild.csproj" />
<ProjectReference Include="..\Tasks\Microsoft.Build.Tasks.csproj" />
<ProjectReference Include="..\Utilities\Microsoft.Build.Utilities.csproj" />
<ProjectReference Include="..\Xunit.NetCore.Extensions\Xunit.NetCore.Extensions.csproj" />
<ProjectReference Include="..\Samples\PortableTask\PortableTask.csproj" ReferenceOutputAssembly="false" Private="false" SetTargetFramework="TargetFramework=netstandard1.3" />
<ProjectReference Include="..\Samples\PortableTask\PortableTask.csproj" ReferenceOutputAssembly="false" Private="false" SetTargetFramework="TargetFramework=netstandard2.0" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like this SetTargetFramework shouldn't be needed any more, but that can wait for another time.

@AR-May AR-May merged commit 0d31bff into dotnet:main Sep 24, 2021
Forgind pushed a commit that referenced this pull request Feb 15, 2022
Changes Made
Changes package reference to the System.Net.Http to an assembly reference for .NETFramework.

Notes
Reverts part of #6879.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants